package bean;

import com.alibaba.fastjson.annotation.JSONType;

import common.interfaces.IJsonPolymorphism;

@JSONType(typeKey = "Parent")
public class Parent implements IJsonPolymorphism {
    private Class<?> cls = this.getClass();

    private String parentName = null;

    @Override
    public Class<?> getCls() {
        return cls;
    }

    @Override
    public void setCls(Class<?> cls) {
        this.cls = cls;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

}
